<?php
 define('IN_DAEM', true); include '../includes/init.php'; $act = !empty($_GET["act"]) ? $_GET["act"] : ''; $id = !empty($_GET["id"]) ? (int)$_GET["id"] :''; if(empty($act) || empty($id))gourl("缺少关键参数!","",-1); if($act == 'del' && $id > 0) { $sqlA = "DELETE FROM case_management where id = '".$id."'"; $sqlB = "DELETE FROM case_attach where cid = '".$id."'"; $resA = $db->query($sqlA); $resB = $db->query($sqlB); if($resA && $resB) gourl("删除流程案例成功！","",-1); else gourl("删除流程案例失败，请返回检查流程相关信息！","",-1); } elseif($act == 'stop' && $id > 0) { $stopStatus = empty($_GET["status"]) ? 2 : (int)$_GET["status"]; $sql = "update case_management set status = ".$stopStatus." where id = '".$id."'"; $res = $db->query($sql); if($res) gourl("流程状态修改案例成功！","",-1); else gourl("修改流程案例状态失败，请返回检查流程相关信息！","",-1); } 